﻿using AutoMapper;
using B.S.BaseData.Api.Write.Applicantion.Command;
using B.S.BataBase.Domain;
using B.S.BataBase.Domain.DTO;

namespace B.S.BaseData.Api.Write
{
    public class MyMapper:Profile
    {
        public MyMapper()
        {
            CreateMap<CreatePermissionCommand,PermissionsModel>().ReverseMap();
            CreateMap<UpdatePermissionCommand, PermissionsModel>().ReverseMap();
            CreateMap<RoleDTO, RoleModel>();
        }
    }
}
